<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/12
 * Time: 14:48
 */
use doumiaoduo\layer\LayerIframeWidget;
LayerIframeWidget::widget();
?>
<?php $form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]); ?>
    <table width="100%" class="table-form">
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['status']; ?></th>
            <td><?= $form->field($model, 'status', ['template' => '{input}{error}{hint}'])->radioList(['0' => '未付款', '1' => '已付款'], ['prompt' => '请选择状态', 'style' => 'width:180px', 'class' => 'input-dropdownlist']) ?></td>
        </tr>

        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['pic_url']; ?></th>
            <td><?= $form->field($model, 'imageList', ['template' => '{input}{error}{hint}'])->widget(\doumiaoduo\ueditor\ImageUploadMultiple::className(),['options'=>[
                    'class'=>'input-text',
                ],
                    'clientOptions'=>[
                        'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                    ],
                    'num'=>6])->hint('此图片优先显示') ?>
            </td>
        </tr>

        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['payment_id']; ?></th>
            <td style="display: inline-block;width: 206px"><?= $form->field($model, 'payment_id', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$payment,'options' => ['placeholder' => '请选择']]) ?></td>
        </tr>

        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['payment_finance_id']; ?></th>
            <td style="display: inline-block;width: 206px"><?= $form->field($model, 'payment_finance_id', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$finance,'options' => ['placeholder' => '请选择']]) ?></td>
        </tr>

    </table>
    <div class="m_top_10 btn" style="display: none">
        <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
    </div>
<?php \yii\widgets\ActiveForm::end(); ?>